{% extends "base.html" %}

{% block content %}
<div id="topic">

<h2>Reply to post</h2>
<!-- TinyMCE -->
<script type="text/javascript" src="scripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		mode : "specific_textareas",
        editor_selector : "mceEditor",
		theme : "advanced"
	});
</script>
<!-- /TinyMCE -->
<div id="original-post">
    <span class="original-post-title">{{ topic.title }}</span>
    <div class="comment-message">{{ topic.message }}</div>
    <div class="comment-signature">
        {{ topic.nickname }}
        <span class="noIE">&nbsp;</span><br />
        {{ topic.date|date:"F jS, Y P" }}
    </div>
</div>
<div id="entryform">
          <br/>
          <form id="postcomment" action="/postcomment" method="post" onsubmit="return validate_postcomment(this)">
            <label>Reply:</label>
            <textarea name="message" rows="8" cols="80" class="mceEditor"></textarea><br/>
            <label></label><input type="submit" name="action" value="Save Reply"><br/>
            <input type="hidden" name="topickey" value="{{ topic.key }}">
          </form>
</div>
</div>
{% endblock %}